package com.nbk.composition

import java.lang.Exception

/**
 * Author:  LuoHaoLun
 * Email :  506503279@qq.com
 * Date  :  2020/1/2
 */
class HandleError(msg: String) : Exception(msg)

inline fun String.error(): Nothing = throw HandleError(this)